#include "cardcon.h"


cardcon::cardcon(QWidget *parent)
{
    this->setGeometry(0,0,100,150);
}

cardcon::~cardcon()
{

}

double randomplace()
{
    return QRandomGenerator::global()->bounded(500.00);
}

double randomtime()
{
    return QRandomGenerator::global()->bounded(5.00);
}

void cardcon::paintEvent(QPaintEvent *ev)
{
    QPainter *painter2 =new QPainter(this);
    QPixmap pixcard;
    pixcard.load(":/res/CardBack.png");
    painter2->drawPixmap(randomplace(),randomplace(),100,150,pixcard);
}

void cardcon::mousePressEvent(QMouseEvent *event)
{

}
